package com.hmy.security.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class LoginDto {

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "uuid不能为空")
    private String uuid;

    @NotBlank(message = "验证码不能为空")
    @Length(min = 4, max = 4, message = "验证码的长度为4位")
    private String verifyCode;

}
